package 实例化;
public class Computer {
    private String cpu;
    private int ram;
    private int storage;

    public Computer(String cpu, int ram, int storage) {
        this.cpu = cpu;
        this.ram = ram;
        this.storage = storage;
    }

    public String toString() {
        return "CPU: " + cpu + ", RAM: " + ram + "GB, Storage: " + storage + "GB";
    }
}
